<script class="ng-scope">
$(".dropdowncentermenu").css("display", "none");
$(".dropdowncentermenu2").css("display", "none");
$("#maintitle").html ("资金管理 - 提款"); 
$(".navbar-absolute-bottom").css ("display" , "none");
$(".infopanel").css ("display" , "none");
$(".navbar-brand-center").css ("margin-left" , "0px");
checkmargin ();
var MIN_AMOUNT=100;
</script>
<script type="text/javascript" src="__MOBILE__/newdsn/js/cash/draw.js" class="ng-scope"></script>

<style class="ng-scope">.has-navbar-top .app-body { padding-top: 72px; }</style>
<div class="scrollable ng-scope">
<div class="scrollable-content member-setting overthrow">
<div>

   <div class="clearfix padding20">
      <div class="fl">
        <img src="__MOBILE__/default/images/mobile/cash/icouser.jpg" width="47" height="46" alt=""></div><div class="fl blue cnbig1 marginleft10 margintop15"><?php echo $_SESSION['member_name']?>
      </div>
      <div class="pull-right">
        中心钱包 : {$info.member_money}|{$info.member_f_money}
      </div>
  </div>

    <div class="settingmenu margintop10 clearfix">
        <a href="#/payment/deposit/1" class="colbtn">
          <img src="__MOBILE__/default/images/mobile/cash/icodeposit.jpg" width="73" height="74" alt="">
            <p class="margintop10">充值</p>
        </a>
        <a href="#/payment/withdrawal" class="colbtn">
          <img src="__MOBILE__/default/images/mobile/cash/icowithdrawal.jpg" width="73" height="74" alt="">
            <p class="margintop10">提款</p>
            <div class="settingarrow"></div>         
        </a>
        <a href="#/payment/transfer" class="colbtn">
          <img src="__MOBILE__/default/images/mobile/cash/icobalance.jpg" width="73" height="74" alt="">
            <p class="margintop10">交易历史</p>
            
        </a>
    </div>
      <?php if($info['true_name']!=''){?>
	     <?php if($info['member_money']<100){?>
		 <div class="aligncenter">
      <div class="logo-th-2"></div>
      <p class="bigtxt aligncenter gray">您的中心钱包余额尚未达到提款标准<br> 提款金额最少为100.00元</p>
      <div class="th-btn"><input type="button" class="btn-blue button needsclick" id="btnAmountLink" value="快速存款"></div>

     </div>
		    <?php }elseif($info['bank_id']>0){?>
			<div style="" class="settingContainer subcontent" id="p_1">
	  <div class="padding20">
			
			
	 <span class="validation">
	<img src="__MOBILE__/default/images/cash/deposit/iconwarning.jpg" width="17" height="15" alt=""> <span class="smalltxt red">请输入提款金额,最低金额100</span></span>
	<br>
            <div class="textbox clearfix">
              <div class="col1 fl">提款金额：</div>
                <div class="col2 fl"><input type="text" name="amount" id="drawamount" class="textfield1" placeholder="(请填写)"></div>
            </div>

		  <div class="textbox clearfix">
            <div class="col1 fl">开户行:</div>
              <div class="col2a fl">
               <?php echo $info['bank_name']?>
              </div>
          </div>
          <div class="textbox clearfix" style="position:relative;">
            <div class="col1 fl">银行卡号:</div>
              <div class="col2a fl">
               <?php echo substr($info['bank_num'],0,4)?>******<?php echo substr($info['bank_num'],-4)?>
              </div>
         <div class=" mt4" style="position:absolute; top:50px; right:10px; margin-top:-29px; color:#05a;" id="card_move">解除绑定</div>
          </div>
		   <div class="textbox clearfix">
              <div class="col1 fl">备&nbsp;&nbsp;注：</div>
                <div class="col2 fl"><input id="remark"type="text"class="textfield1" ></div>
            </div>

	        <div class="gap20"></div>
	        <div class="col-xs-12">
	        	<div class=" cnbig btnradius">
				<input type="submit" class="submitbtn" id="btnDraw" value="提交" style="border:none;">
				</div>
	        </div>
	 </div>	
	</div>
	

    
</div>
   <?php }else{?>
			 <div class="aligncenter">
      <div id="card_h">
      <div class="logo-th-2"></div>
      <p class="bigtxt aligncenter gray">添加一张银行卡开始提款吧</p>
        <div class="margintop40 aligncenter"><img src="__HOME_CSS__/default/images/cash/addbankcard.jpg" width="214" height="112" alt=""></div>
      </div>
      <div class="formpanel margintop20" id="card_s" style="display: none;">
        <div class="padding20">
          <div class="textbox clearfix">
            <div class="col1 fl">选择银行</div>
              <div class="col2 fl"><select id="bankCode" class="dropdown gray needsclick">
       <foreach name="list" item="vo">
        <option value="{$vo.id}">{$vo.name}</option>
     </foreach>
</select>
</div>
          </div>
          <div class="textbox clearfix">
            <div class="col1 fl">持卡人姓名：</div>
              <div class="col2 fl"><input type="text" class="textfield1 needsclick" value="222" readonly=""></div>
          </div>
          <div class="textbox clearfix">
            <div class="col1 fl">收银行卡号：</div>
              <div class="col2 fl"><input type="text" id="cardId" oninput="inputAccount()"class="textfield1 needsclick"></div>
          </div>
          <div class="textbox clearfix">
            <div class="col1 fl">开户网点：</div>
              <div class="col2 fl"><input type="text" id="bankaddress" class="textfield1 needsclick"></div>
          </div>
          <div class="gap20"></div>
          <div class="submitbtn cnbig btnradius" id="btnCard">提交</div>
        </div>
      </div>

     </div>

			 <?php }?>
	      
        
	   <?php }else{?>
	   			 <div class="row mt10">
				<a href="javascript:void(0);" class="tabnavi tabnaviactive">绑定真实姓名</a>
			</div>
			<div class="tabbox clearfix" style="display: block;">
				<div class="margincenter mt15 warningicon"></div>
				<div class="warningtxt">
					您的真实姓名尚未绑定<br> 真实姓名相关联银行卡姓名
				</div>
				<div class="warningtxt">
					<input type="button" class="btnsubmit userLink" value="绑定真实姓名">
				</div>
			</div>
	   <?php }?>
     
    
</div>
	
 <script>  
    var num = 0;  
    function inputAccount(){
        
      var str = $('#cardId').val();  
        
      var elem = document.getElementById("cardId");  
        
      console.log(elem);  
        
      if(str.length > num){  
          var c = str.replace(/\s/g,  "");   
            
          if(str != "" && c.length > 4 && c.length % 4 == 1){  
            $('#cardId').val(str.substring(0, str.length - 1)+ " " + str.substring(str.length - 1, str.length));  
                
          }  
      }  
        
 
        
  }  
  
    </script>
</div>
</div>
